package com.gxa.setting.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gxa.setting.dto.ServiceLabelDTO;
import com.gxa.setting.entity.SetLabel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SetLabelMapper {
    List<ServiceLabelDTO> serviceList(@Param("page") Page<ServiceLabelDTO> page);

    void addLabelsByServiceId(@Param("serviceId") Integer serviceId,@Param("name") String name);

    void updateLabelSByServiceIdAndLabelIds(@Param("serviceId") Integer serviceId,@Param("id") Integer id,@Param("name") String name);

    List<SetLabel> queryLabelListByServiceId(Integer serviceId);

    ServiceLabelDTO queryServiceByServiceId(Integer serviceId);

    SetLabel queryLabel(Integer id);

    void updateStatus(@Param("id") Integer id,@Param("status")  Byte status);
}
